package pl.ericpol.environment.sensors.light_sensors;

import pl.ericpol.environment.sensors.Sensor;

/**
 *  
 * @author Mikalai Kisel
 *
 */
public abstract class LightSensor implements Sensor {
	
	private int id;
	
	public LightSensor(int id) {
		super();
		this.id = id;
	}

	abstract public int getBrightness();
	
	@Override
	public long getState() {
		return getBrightness();		
	}
	
	@Override
	public int getId() {
		return id;
	}
	
	@Override
	public void setId(int id) {
		this.id=id;
	}
	
	

}
